package u.hnx.admin.security.api;

import org.springframework.security.authorization.AuthorizationDecision;
import org.springframework.security.core.Authentication;

import java.util.function.Supplier;
/*
* 自定义动态权限验证接口
* 为更好地扩展,满足各件应用场景,做成函数式接口,在security组件以外实现接口方法,以便后续可以更加方便地修改和调整
* 创建日期：2024-06-21
* */
@FunctionalInterface
public interface AuthorManager {
    public AuthorizationDecision check(Supplier<Authentication> authentication, String url);
}
